package com.yytek.nmp.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yytek.common.core.annotation.Excel;
import com.yytek.common.core.web.domain.BaseEntity;

import javax.validation.constraints.NotBlank;

/**
 * 项目对象 iot_project_info
 * 
 * @author yytek-iot
 * @date 2022-07-05
 */
@ApiModel("项目对象")
public class IotProjectInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @ApiModelProperty("id")
    private Long id;

    /** 项目名称 */
    @Excel(name = "项目名称")
    @ApiModelProperty("项目名称")
    private String projectName;

    /** 状态(禁用（0），启用（1）) */
    @Excel(name = "状态(禁用", readConverterExp = "0=")
    @ApiModelProperty("状态(禁用（0），启用（1）)")
    private Integer status;

    /** 标签(可描述项目属于什么行业) */
    @Excel(name = "标签(可描述项目属于什么行业)")
    @ApiModelProperty("标签(可描述项目属于什么行业)")
    private String label;

    /** 位置坐标(json{x:经度,y:纬度}) */
    @Excel(name = "位置坐标(json{x:经度,y:纬度})")
    @ApiModelProperty("位置坐标(json{x:经度,y:纬度})")
    private String location;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setProjectName(String projectName) 
    {
        this.projectName = projectName;
    }

    @NotBlank(message = "项目名称不能为空")
    public String getProjectName() 
    {
        return projectName;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setLabel(String label) 
    {
        this.label = label;
    }

    public String getLabel() 
    {
        return label;
    }
    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("projectName", getProjectName())
            .append("status", getStatus())
            .append("label", getLabel())
            .append("location", getLocation())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
